package kr.ac.sch.cs.HelloBaby;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class HelloBaby extends Activity implements OnClickListener {
	/**
	 * @uml.property  name="btn1"
	 * @uml.associationEnd  
	 */
	private Button btn1;
	/**
	 * @uml.property  name="btn2"
	 * @uml.associationEnd  
	 */
	private Button btn2;
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        btn1 = (Button) findViewById(R.id.button1);
        btn2 = (Button) findViewById(R.id.button2);
        
        btn1.setOnClickListener(this);
        btn2.setOnClickListener(this);
        
    }
	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		switch(arg0.getId())
		{
			case R.id.button1 :
				Intent i = new Intent(HelloBaby.this, HelloBabyActivity.class);
				startActivity(i);
				finish();
				break;
			case R.id.button2 :
				startActivity(new Intent(this, Ip_Setting.class));
				break;
		}
	}
}